<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<div id="app">
  <!--v-bind绑定style：后面一个数组（不常用）-->
  <h2 :style="[baseStyle, baseStyle1]">{{message}}</h2>
</div>

<script src="../js/vue.js"></script>
<script>
  const app=new Vue({
    el: '#app',
    data: {
      message: '你好',
      baseStyle:{backgroundColor:'red'},
      baseStyle1:{fontSize:'100px'}
    },
  })

</script>
</body>
</html>